package cn.edu.cqut.test0416;

import java.util.InputMismatchException;
import java.util.Scanner;

public class Test3 {
	public static void main(String[] args) {
		int a, b;
		Scanner scan = new Scanner(System.in);
		for(;;)
		{
			try//异常检测+异常抛出
			{
				a = Integer.parseInt(scan.nextLine());
				b = Integer.parseInt(scan.nextLine());
			}
			catch(Exception e)//异常捕获
			{
				//异常处理
				System.out.println("输入错误，请重新输入: "+e.getMessage());
				continue;
			}
			if(a == 0 && b==0)
				break;
			System.out.println(a+"+"+b+"="+(a+b));
		}
		scan.close();
	}
}
